package com.cqtd.user.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Entity
@Table(name = "t_user")
@DynamicUpdate(true)
@DynamicInsert(true)
public class SystemUser {
	@Id
	@Column(name = "id",length = 36)
	@javax.persistence.GeneratedValue(generator = "system-uuid")
	@org.hibernate.annotations.GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
	private String id;//用户主键ID
	@Column(length = 100,nullable = true)
    private String userId;//用户ID
	@Column(length = 100)
	private String userName;//用户名称
	@Column(length = 100,nullable = true)
    private Date createDate;//用户ID
	@Column(length = 10)
	private String sex;//性别
	@Column(length = 10,nullable = true)
	private String ifAdmin; //是否管理员 0超级管理员  、2 普通用户 、1一般管理员
	@Column(length = 50,nullable = true)
	private String deptId; //所属部门
	@Column(length = 100)
	private String userType; //人员类型 （字典类型，具体字典值待定）
	@Column(length = 10,nullable = true)
	private String accountStatus;//账号状态  0 激活  1 未激活
	@Column(length = 10,nullable = true)
	private String ifdeleted;//是否已删除  0 未删除 1 已删除
	@Column(length = 50)
	private String mobile; //联系电话
	@Column(length = 200)
	private String address;//住址
	@Column(length = 100)
	private String email;//邮箱
	@Column(length = 100)
	private String userCode;//用户编号
	@Column(length = 500)
	private String remark; //备注
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getIfAdmin() {
		return ifAdmin;
	}
	public void setIfAdmin(String ifAdmin) {
		this.ifAdmin = ifAdmin;
	}
	public String getDeptId() {
		return deptId;
	}
	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
	public String getAccountStatus() {
		return accountStatus;
	}
	public void setAccountStatus(String accountStatus) {
		this.accountStatus = accountStatus;
	}
	public String getIfdeleted() {
		return ifdeleted;
	}
	public void setIfdeleted(String ifdeleted) {
		this.ifdeleted = ifdeleted;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	
}
